import request from '@/utils/request'
export function getCommodityStockSaleByCommodityTypeTable() {
  return request({
    url: '/cld/saleBI/getCommodityStockSaleByCommodityTypeTable',
    method: 'get',
  })
}
export function getCompanyCommodityTypeSaleRate() {
  return request({
    url: '/cld/saleBI/getCompanyCommodityTypeSaleRate',
    method: 'get',
  })
}
export function getMaterialsInfoSaleDayImg() {
  return request({
    url: '/cld/saleBI/getMaterialsInfoSaleDayImg',
    method: 'get',
  })
}

export function getMaterialsInfoSaleTable() {
  return request({
    url: '/cld/saleBI/getMaterialsInfoSaleTable',
    method: 'get',
  })
}

export function getSaleCommodityTypeRate() {
  return request({
    url: '/cld/saleBI/getSaleCommodityTypeRate',
    method: 'get',
  })
}
export function getSaleCommodityTypeTable() {
  return request({
    url: '/cld/saleBI/getSaleCommodityTypeTable',
    method: 'get',
  })
}
export function getSaleCustomerOrderRate() {
  return request({
    url: '/cld/saleBI/getSaleCustomerOrderRate',
    method: 'get',
  })
}
export function getSaleOrderInfoTable() {
  return request({
    url: '/cld/saleBI/getSaleOrderInfoTable',
    method: 'get',
  })
}


export function getCompanyStockRateByCommodityTypeId(params) {
  return request({
    url: '/cld/saleBI/getCompanyStockRateByCommodityTypeId',
    method: 'get',
    params
  })
}
export function getCompanyStockTableByCommodityTypeId(params) {
  return request({
    url: '/cld/saleBI/getCompanyStockTableByCommodityTypeId',
    method: 'get',
    params
  })
}

export function getSaleMoneyByCommodityTypeId(params) {
  return request({
    url: '/cld/saleBI/getSaleMoneyByCommodityTypeId',
    method: 'get',
    params
  })
}
export function getLevelSaleTableByCommodityTypeId(params) {
  return request({
    url: '/cld/saleBI/getLevelSaleTableByCommodityTypeId',
    method: 'get',
    params
  })
}


